package com.audaque.encoding.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 文件赋码后的回调表
 * </p>
 *
 * @author mayong
 * @since 2024-04-03
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_callback")
@Schema(name = "CallbackDO", description = "文件赋码后的回调表")
public class CallbackDO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "通知id")
    @TableField("notify_id")
    private String notifyId;

    @Schema(description = "赋码状态")
    @TableField("state")
    private String state;

    @Schema(description = "赋码请求的文件id")
    @TableField("req_file_id")
    private String reqFileId;

    @Schema(description = "赋码响应的文件id")
    @TableField("res_file_id")
    private String resFileId;

    @Schema(description = "原始json")
    @TableField("json")
    private String json;

    @Schema(description = "回调时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
